#include <stdio.h>

typedef float real;

int main() {
    real r, ra;
    int n;
    n = 2;
    r = 1.0;
    do { 
        ra = r;
        r = (real)1/n++;
    } while (ra > r);
    printf ("%d %.20Lf\n",n, (long double)ra);
    return 0;
}
